﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SmartCity.Shared;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;

namespace ParkManagement
{
    /// <summary>
    /// 挪车控制器
    /// </summary>
    [Authorize]
    [RemoteService]
    [Area("commonManagement")]
    [Route("api/parkManagement/moves")]
    public class MoveController : AbpController, IMoveAppService
    {
        private readonly IMoveAppService _moveAppService;

        public MoveController(
            IMoveAppService moveAppService)
        {
            _moveAppService = moveAppService;
        }

        // 创建
        [HttpPost]
        [Route("")]
        public Task<ResultResponse<MoveDto>> CreateAsync(CreateMoveDto input)
        {
            return _moveAppService.CreateAsync(input);
        }
    }
}